package team.xyg.cdtu2.service.impl;

import team.xyg.cdtu2.dto.Brand_sales_Map;
import team.xyg.cdtu2.dto.PlatMapData;
import team.xyg.cdtu2.entity.BrandSales;
import team.xyg.cdtu2.dao.BrandSalesDao;
import team.xyg.cdtu2.service.BrandSalesService;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;

import javax.annotation.Resource;
import java.util.List;

/**
 * (BrandSales)表服务实现类
 *
 * @author makejava
 * @since 2022-06-28 08:54:30
 */
@Service("brandSalesService")
public class BrandSalesServiceImpl implements BrandSalesService {
    @Resource
    private BrandSalesDao brandSalesDao;



    /**
     * 查询品牌销售Top5
     * @return
     */
    @Override
    public List<PlatMapData> queryBrandTop() {
        return brandSalesDao.queryBrandTop();
    }





    @Override
    public List<Brand_sales_Map> queryBrand_sales() {
        return brandSalesDao.queryBrand_sales();
    }
}
